<div ng-controller="voucherConsumeCtrl
">
    <div class="form-group">
        <label class="control-label" for="textinput">商家名称:</label>
        <input type="text" class="" ng-model="filter_retailer_name" />
        <label class="control-label" for="textinput">代金券类型:</label>
        <select ng-model="filter_voucher_type" ng-options="type.id as type.voucher_name for type in voucherTypeList.data">
            <option value="">-- 请选择 --</option>
        </select>
        <label for="7" class="control-label">消费日期</label>
        <input type="text" id="beginTime" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd"  ng-model="beginTime"  required >
        到
        <input type="text" id="endTime" data-provide="datepicker" class="datepicker"  data-date-format="yyyy-mm-dd" ng-model="endTime"  required >
        <button type="button" class="btn-primary btn-sm  " ng-click="getVoucherList()">搜索</button>
    </div>

    <div class="tab-content">
        <div class="tab-pane active" id="tab_a">
            <mutau>
                <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
                    on-select-page="selectPage(page)">
                    <li ng-class="{disabled: noPrevious()}"><a ng-click="selectPrevious()">&laquo;</a>

                    </li>
                    <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                            ng-click="selectPage(page)">{{page}}</a>

                    </li>
                    <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

                    </li>
                    <li ng-show="currentPage>6"><a ng-click="selectPage(1)">首页</a>

                    </li>
                </ul>
            </mutau>
            <table class="table table-condensed">
                <thead>
                <tr>
                    <th>商家名称</th>
                    <th>代金券类型</th>
                    <th>代金券数量</th>
                    <th>代金券金额</th>
                    <th>币面结算金额</th>
                    <th>商家奖励金额</th>
                    <th>总金额</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="result in voucherList">
                    <th>{{result.retailer_name}}</th>
                    <th>{{result.voucher_name}}</th>
                    <th>{{result.voucher_count}}</th>
                    <th>{{result.voucher_val}}</th>
                    <th>{{result.deal_price}}</th>
                    <th>{{result.retailer_price}}</th>
                    <th>{{result.retailer_price + result.deal_price}}</th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

